index_app.controller("index_ctrl", function ($scope, $http,$route,$rootScope) {

    $scope.roleName = $("#roleName").text();
    console.log($scope.roleName);
    if( $scope.roleName == "admin"){
        $scope.isAdmin = true;
    } else {
        $scope.isAdmin = false;
    }
	/*$rootScope.loading = true;
	$http.get("/StmUsr/getUsrSession").then(function (response) {
		$scope.stmUsr =  response.data;
		$http.get("/StmUsr/getStmMenusByParams?usrKey="+$scope.stmUsr.usrKey+"&upMenuKey=22").then(function (response) {
			$rootScope.loading = true;
			$scope.menuList = response.data;
			if($scope.menuList == ""){

			} else {
				$rootScope.loading = false;
				$scope.secondMenu = $scope.menuList.secondMenu;
				$scope.thirdMenu = $scope.menuList.thirdMenu;
			}

		});
	});*/

	/*$scope.addressIp = $("#addressIp").val();



	$scope.changeStyle = function(index){
		$scope.selected = index;
		$route.reload();//路由刷新，刷新内容页
	}

	$scope.liClass = "true";//没有open

	$scope.changeClass = function(){
		if($scope.liClass == "true"){
			$scope.liClass = "false";//open
		} else if ($scope.liClass == "false"){
			$scope.liClass = "true";
		}
	}

	$scope.signOut = function(){
		$("#singout_form").submit();
	}

	$scope.backReturn = function(){
	    $("#backProject").attr("action",$scope.addressIp);
    	$("#backProject").submit();
    }
*/

})















